<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="content-type" content="text/html;charset=utf-8" />
    <script>

        //测试原生端Toast   原生端方法名：newACtivity（）;
        var checkToast = function () {
            try {
                H5Plugin.showToast("这是JS回调的Message");
            } catch (e) {
                alert(e.message)
            }
        }

        //测试原生端Intent，原生端方法名：newACtivity（）;
        var checkIntent = function () {
            try {
                H5Plugin.newACtivity();
            } catch (e) {
                alert(e.message)
            }
        }

    </script>

    <style>
        #btn1 {
            width:500px;
            height:100px;
            font-size:25px;
            align-content:center;
        }

    </style>
</head>
<body>
<hr/>
<div>
    <br>
    <input id="btn1" type="button" value="JS调用原生Toast"  onclick="checkToast()"/>
</div>
<div>
    <br>
    <input id="btn1" type="button"  value="JS调用原生Intent"   onclick="checkIntent()" />
</div>
</body>
</html>